package com.mlk.waste.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mlk.waste.po.EngWasteTypeTree;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author trekxu
 * @since 2019-07-08
 */
@Mapper
public interface EngWasteTypeTreeMapper extends BaseMapper<EngWasteTypeTree> {

    /**
     * 增加库存信息
     * @param typeId
     * @param totalNum
     * @return
     */
    int addStock(@Param("typeId") Integer typeId, @Param("totalNum") BigDecimal totalNum);

    int seqAdd(@Param("id") Integer id,@Param("sourceId")Integer sourceId);
}
